version: '2'
services:
  mongodb:
    image: quay.io/debezium/example-mongodb:2.1
    ports:
     - 27017:27017
    environment:
     - MONGODB_USER=debezium
     - MONGODB_PASSWORD=dbz
  postgres:
    image: postgres:13
    ports:
     - 5432:5432
    environment:
     - POSTGRES_USER=postgresuser
     - POSTGRES_PASSWORD=postgrespw
     - POSTGRES_DB=inventorydb
  zookeeper:
    image: quay.io/debezium/zookeeper:2.1
    ports:
     - 2181:2181
     - 2888:2888
     - 3888:3888
  kafka:
    image: quay.io/debezium/kafka:2.1
    ports:
     - 9092:9092
    links:
     - zookeeper
    environment:
     - ZOOKEEPER_CONNECT=zookeeper:2181
  akhq:
    container_name: akhq
    image: tchiotludo/akhq
    ports:
      - 8081:8080
    volumes:
      - ./akhq/app/application.yml:/app/application.yml
    links:
      - kafka
  connect:
    image: debezium/connect-jdbc:2.1
    build:
      context: debezium-jdbc
      args:
        DEBEZIUM_VERSION: 2.1
    ports:
     - 8083:8083
    links:
     - kafka
     - mongodb
     - postgres
    environment:
     - BOOTSTRAP_SERVERS=kafka:9092
     - GROUP_ID=1
     - CONFIG_STORAGE_TOPIC=my_connect_configs
     - OFFSET_STORAGE_TOPIC=my_connect_offsets
     - STATUS_STORAGE_TOPIC=my_source_connect_statuses
